package object_oriented

class Position(var x: Double=0, var y: Double=0) {
  def move(deltaX:Double=0, deltaY:Double=0): Unit = {
    x+=deltaX
    y+=deltaY
  }
}

object Position {
  def main(args: Array[String]): Unit = {
    val p = new Position()
    p.move(deltaY = 5)
    p
  }
}
